Skip to main content

All Pools

Queries all the LP reserves and shares on all the chains for the specified VLP.

query Vlp($contract: String, $pair: PairInput, $limit: Int, $offset: Int) {
vlp(contract: $contract, pair: $pair) {
all_pools(limit: $limit, offset: $offset) {
pools {
chain_uid
pool {
reserve_1
reserve_2
lp_shares
}
}
pagination {
total_count
limit
offset
}
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Vlp($contract: String!, $limit: Int, $offset: Int) {\n vlp(contract: $contract) {\n all_pools(limit: $limit, offset: $offset) {\n pools {\n chain_uid\n pool {\n reserve_1\n reserve_2\n lp_shares\n }\n }\n pagination {\n total_count\n limit\n offset\n }\n }\n }\n}","variables":{"contract":"nibi1ulj49aczcwsdk93mv0nar0c0k0ptqn9n3y6rqwaeslz5tlftlvcs5xvzxa","limit":null,"offset":null}}'

Open in Playground

Arguments

ArgumentTypeDescription
contractStringThe contract address of the VLP. Required if pair is not provided.
pairPairInputThe token pair of the VLP. Required if contract is not provided.
limitIntLimits the number of results returned.
offsetIntNumber of results to skip (for pagination).

Return Fields

FieldTypeDescription
chain_uidStringThe unique identifier (UID) of the chain.
poolPoolInfoDetailed information about the pool.
total_countIntThe total number of token pairs (pools) available.
limitIntThe maximum number of pools returned per query request.
offsetIntThe number of pools to skip before starting to return the result set.

PoolInfo

FieldTypeDescription
reserve_1StringThe reserve amount of the first token.
reserve_2StringThe reserve amount of the second token.
lp_sharesStringThe number of liquidity provider shares.